<?php
namespace app\manage\validate;
use app\common\validate\BaseValidate;
class Role extends  BaseValidate
{
    protected $rule = [
            'id' => 'require',
            'rid' => 'require',
        ];
        protected $message = [
            'id.require' => '缺少必要参数id',
            'rid.require' => '缺少必要参数rid',
        ];
        protected $scene = [
            'edit'  =>  ['id', ],
            'info' => ['id',],
            'setRole'  =>  ['id','rid',],
            'delete' => ['id',],
        ];
}